/**
 * DEMO Plugin for Timemachine
 * 
 * Shows the google gears status in the topbar
 * 
 * @author flobo <bosselmann@gmail.com>
 * 
 */
var plugin_gearsstatus = {
	events:function(call, param) {
		if (call == 'topmenu.show') {
			if (($defined(window.google) && $defined(google.gears))) {
				$('projecttitle').innerHTML += ' on gears';
				
				//var localServer = google.gears.factory.create('beta.localserver');
				//var store = localServer.createManagedStore('timemachine');
				//store.manifestUrl = 'gears_localserver_manifest.txt';
				//store.checkForUpdate();
				
				//alert(store.updateStatus);
			}
		}
	}
};
